package bean;

import java.sql.Timestamp;

/**
 * WechatCache entity. @author MyEclipse Persistence Tools
 */

public class WechatCache implements java.io.Serializable {

    // Fields

    private Integer id;
    private String accessToken;
    private Timestamp accessTokenExpires;
    private String jsapiTicket;
    private Timestamp jsapiTicketExpires;
    private String apiTicket;
    private Timestamp apiTicketExpires;

    // Constructors

    /** default constructor */
    public WechatCache() {
    }

    /** full constructor */
    public WechatCache(String accessToken, Timestamp accessTokenExpires,
            String jsapiTicket, Timestamp jsapiTicketExpires, String apiTicket,
            Timestamp apiTicketExpires) {
        this.accessToken = accessToken;
        this.accessTokenExpires = accessTokenExpires;
        this.jsapiTicket = jsapiTicket;
        this.jsapiTicketExpires = jsapiTicketExpires;
        this.apiTicket = apiTicket;
        this.apiTicketExpires = apiTicketExpires;
    }

    // Property accessors

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccessToken() {
        return this.accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Timestamp getAccessTokenExpires() {
        return this.accessTokenExpires;
    }

    public void setAccessTokenExpires(Timestamp accessTokenExpires) {
        this.accessTokenExpires = accessTokenExpires;
    }

    public String getJsapiTicket() {
        return this.jsapiTicket;
    }

    public void setJsapiTicket(String jsapiTicket) {
        this.jsapiTicket = jsapiTicket;
    }

    public Timestamp getJsapiTicketExpires() {
        return this.jsapiTicketExpires;
    }

    public void setJsapiTicketExpires(Timestamp jsapiTicketExpires) {
        this.jsapiTicketExpires = jsapiTicketExpires;
    }

    public String getApiTicket() {
        return this.apiTicket;
    }

    public void setApiTicket(String apiTicket) {
        this.apiTicket = apiTicket;
    }

    public Timestamp getApiTicketExpires() {
        return this.apiTicketExpires;
    }

    public void setApiTicketExpires(Timestamp apiTicketExpires) {
        this.apiTicketExpires = apiTicketExpires;
    }

}